package edu.umuc.cmsc495_final_project;

import java.io.Serializable;

public class Items implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1233350929931732277L;
	String name;
	double price;
	ItemType type;
	
	public Items(String name, ItemType type, double price){
		this.name = name;
		this.type = type;
		this.price = price;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public void setPrice(double price){
		this.price = price;
	}
	
	public void setType(ItemType type){
		this.type = type;
	}
	
	public String getName(){
		return name;
	}
	
	public double getPrice(){
		return price;
	}
	
	public ItemType getType(){
		return type;
	}
	
	public String toString(){
		return name + " - $" + price + " Item type: " + type; 
	}
}